package com.tuzhi.auth.sys.jpa.entity;

import com.tuzhi.auth.sys.jpa.entity.pk.SysRoleMenuPk;
import com.tuzhi.base.jpa.repository.BaseCommEntity;
import lombok.Data;

import javax.persistence.*;

@Data
@Entity
@IdClass(SysRoleMenuPk.class)
@Table(name = "sys_role_menu", schema = "tuzhi", catalog = "")
public class SysRoleMenuEntity extends BaseCommEntity {

    @Id
    @Column(name = "role_id", nullable = false)
    private Long roleId;

    @Id
    @Column(name = "menu_id", nullable = false)
    private Long menuId;

}
